﻿using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess
{
    /// <summary>
    /// 宠物信息表
    /// </summary>
    [Table("petinfo")]
    [PrimaryKey(nameof(merchantid), nameof(petinfoid))]
    public class PetInfo
    {
        /// <summary>
        /// 商户id
        /// </summary>
        [JsonIgnore]
        public long merchantid { get; set; }

        /// <summary>
        /// 宠物id
        /// </summary>
        public long petinfoid { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? nickname { get; set; }

        /// <summary>
        /// 品种
        /// </summary>
        public string? breed { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public int? price { get; set; }

        /// <summary>
        /// 库存
        /// </summary>
        public int? stock { get; set; }

        /// <summary>
        /// 封面图像
        /// </summary>
        public string? coverimgsrc { get; set; }

        /// <summary>
        /// 其他图像
        /// </summary>
        public string? otherimgsrc { get; set; }

        /// <summary>
        /// 视频地址
        /// </summary>
        public string? videosrc { get; set; }

        /// <summary>
        /// 物种id
        /// </summary>
        public int? speciesid { get; set; }

        /// <summary>
        /// 年龄：单位：月
        /// </summary>
        public int? age { get; set; }

        /// <summary>
        /// 性别：公，母
        /// </summary>
        public string? gender { get; set; }

        /// <summary>
        /// 绝育状态：已绝育，未绝育
        /// </summary>
        public string? sterstatus { get; set; }

        /// <summary>
        /// 疫苗状态：已接种，未接种
        /// </summary>
        public string? vaccinstatus { get; set; }

        /// <summary>
        /// 高度
        /// </summary>
        public double? height { get; set; }

        /// <summary>
        /// 体重
        /// </summary>
        public double? weight { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        public double? length { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remark { get; set; }

        /// <summary>
        ///更新时间
        /// </summary>
        public DateTime? updatetime { get; set; }
    }
}
